<?php $this->widget('application.components.AdminMenu',array('nameId'=>'listinformation')); ?>

<!-- Subheader -->			
<div id="subheader" class="clearfix">
	<h2>Новости</h2>
	<a href="#"><span>Cancel</span></a>
</div>
<!-- /End Subheader -->

<!-- Main Content Area -->			
<div style="height: max-height;" id="content">
	
	<div id="inner">
	    <table class="hover" width="100%">
	        <thead>
	            <tr>
	                <th class="checkbox">
	                    <div class="checker" id="uniform-">
	                        <span>
	                            <input type="checkbox" style="opacity:0;">
	                        </span>
	                    </div>
	               </th>
	               <th>News Title</th>
	               <th>Author</th>
	             
	               <th>Date</th>
	           </tr>
	        </thead>
	        <tbody>
			<?php foreach( $information as $key ) { ?>
	            <tr>
	                <td>
	                    <div class="checker" id="uniform-">
	                        <span class="">
	                            <input type="checkbox" style="">
	                        </span>
	                    </div>
	                </td>
	                <td>
                            <?php echo $key->title; ?>
                            <p class="links">
                                <?php echo '<a href="/admin/qinformation/edit/'.$key->id.'">Редактировать</a>'; ?>
                                <a href="#">Preview</a>
                                <?php echo '<a href="/admin/qinformation/del/'.$key->id.'">Удалить</a>'; ?>
                            </p>
                        </td>
	                <td><?php echo $key->image; ?></td>
	                             
	               
	                <td><?php echo date("d.m.Y",strtotime($key->date));?></td>
	            </tr>
			<?php } ?>
	            
	        </tbody>
	    </table>
	    
	    <!-- Pagination -->
	 
	   <div class="pagination">
	 
	           <?php     $this->widget('application.components.MyPagination',array('count_page'=>$count_page,'show_link'=>4)); ?>
	    </div>
	    <!-- end pagination -->
	</div><!-- end inner -->
	
</div><!-- End main content area -->
